#ifndef BSP_H
#define BSP_H

#include <stdio.h>
#include <string.h>
#include "hk32f030m.h"
// #include "hardware.h"
// #include "cxpsk.h"
// #include "app.h"

typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;

typedef enum
{
    RX_WAIT = 0, // 等待接收
    RX_START,    // 开始接收
    RX_FINISH,   // 接收完成
} rx_state_t;

/* bsp driver lib */
#include "bsp_system.h"
#include "bsp_gpio.h"
#include "bsp_uart1.h"
#include "bsp_iwdg.h"
#include "bsp_sw_iic1.h"
#include "bsp_timer2.h"

void bsp_init(void);

#endif
